import java.util.Arrays;

public class Main {
/*    public static void main(String[] args) {
        int[] arr1;             //true
        arr1 = new int[]{1,2,3,4,5};
        arr1[1] = 10;
        System.out.println(arr1[1]);

        int[] arr2;             //true
        arr2 = new int[5];

        *//*int[] arr3;             //false
        arr3 = {1,2,3,4,5}; *//*
    }*/


/*    public static void main(String[] args) {
        int[] arr1 = {1,2,3,4,5};

        for (int i = 0; i < arr1.length; i++) {     //数组.length可以求得这个数组的长度
            System.out.print(arr1[i] + " ");
        }

        System.out.println();

        for (int x:arr1) {
            System.out.print(x + " ");
        }

        System.out.println();

        System.out.println(Arrays.toString(arr1));
    }*/

/*    public static void main(String[] args) {
        int[]arr1 = new int[5];
        int[]arr2 = new int[]{1,2,3,4,5};

        arr1 = arr2;
        System.out.println("把arr2赋值给arr1后：");
        System.out.print("arr1[0] = " + arr1[1] + "       ");
        System.out.println("arr1[0] = " + arr2[1]);

        System.out.println();
        arr1[1] = 10;
        System.out.println("把arr1[0]修改为10后");
        System.out.print("arr1[0] = " + arr1[1] + "       ");
        System.out.print("arr1[0] = " + arr2[1]);
    }*/

/*    public static void fun(int[] arr){
        arr = new int[4];
    }

    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        System.out.println(Arrays.toString(arr));
        fun(arr);
        System.out.println(Arrays.toString(arr));
    }*/


    public static void main(String[] args) {
        int[]arr = fun();
        System.out.println(Arrays.toString(arr));
    }

    public static int[] fun() {
        int a = 2;
        int b = 3;
        return new int[]{a, b};
    }
}